.class Lcom/nemustech/regina/SecretAppSelector$1;
.super Ljava/lang/Object;
.source "SecretAppSelector.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/SecretAppSelector;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/SecretAppSelector;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/SecretAppSelector;)V
    .locals 0
    .parameter

    .prologue
    .line 136
    iput-object p1, p0, Lcom/nemustech/regina/SecretAppSelector$1;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "v"

    .prologue
    .line 141
    iget-object v2, p0, Lcom/nemustech/regina/SecretAppSelector$1;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    iget-object v3, p0, Lcom/nemustech/regina/SecretAppSelector$1;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-static {v3}, Lcom/nemustech/regina/SecretAppSelector;->access$000(Lcom/nemustech/regina/SecretAppSelector;)Z

    move-result v3

    if-nez v3, :cond_0

    const/4 v3, 0x1

    :goto_0
    invoke-static {v2, v3}, Lcom/nemustech/regina/SecretAppSelector;->access$002(Lcom/nemustech/regina/SecretAppSelector;Z)Z

    .line 142
    iget-object v2, p0, Lcom/nemustech/regina/SecretAppSelector$1;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-static {v2}, Lcom/nemustech/regina/SecretAppSelector;->access$000(Lcom/nemustech/regina/SecretAppSelector;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 143
    check-cast p1, Landroid/widget/Button;

    .end local p1
    const-string v2, "Deselect All"

    invoke-virtual {p1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 147
    :goto_1
    const/4 v0, 0x0

    .local v0, i:I
    :goto_2
    iget-object v2, p0, Lcom/nemustech/regina/SecretAppSelector$1;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-static {v2}, Lcom/nemustech/regina/SecretAppSelector;->access$100(Lcom/nemustech/regina/SecretAppSelector;)Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;->getCount()I

    move-result v2

    if-ge v0, v2, :cond_2

    .line 148
    iget-object v2, p0, Lcom/nemustech/regina/SecretAppSelector$1;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-static {v2}, Lcom/nemustech/regina/SecretAppSelector;->access$100(Lcom/nemustech/regina/SecretAppSelector;)Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;

    .line 149
    .local v1, set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    iget-object v2, p0, Lcom/nemustech/regina/SecretAppSelector$1;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-static {v2}, Lcom/nemustech/regina/SecretAppSelector;->access$000(Lcom/nemustech/regina/SecretAppSelector;)Z

    move-result v2

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->setHidden(Z)V

    .line 147
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    .line 141
    .end local v0           #i:I
    .end local v1           #set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    .restart local p1
    :cond_0
    const/4 v3, 0x0

    goto :goto_0

    .line 145
    :cond_1
    check-cast p1, Landroid/widget/Button;

    .end local p1
    const-string v2, "Select All"

    invoke-virtual {p1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 151
    .restart local v0       #i:I
    :cond_2
    iget-object v2, p0, Lcom/nemustech/regina/SecretAppSelector$1;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-static {v2}, Lcom/nemustech/regina/SecretAppSelector;->access$100(Lcom/nemustech/regina/SecretAppSelector;)Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;->notifyDataSetChanged()V

    .line 152
    return-void
.end method
